import arcade
#打开一个窗口
arcade.open_window(600, 600, "Drawing Example")

#设置背景颜色
arcade.set_background_color(arcade.csscolor.BLACK)

#开始画图
arcade.start_render()

#绘图代码
arcade.draw_lrtb_rectangle_filled(0, 599, 150, 0, arcade.csscolor.BLUE)#大海
arcade.draw_lrtb_rectangle_filled(0, 599, 170, 150, arcade.csscolor.WHITE_SMOKE)#地面
arcade.draw_lrtb_rectangle_filled(100, 150, 20, 15, arcade.csscolor.DARK_BLUE)#波纹
arcade.draw_lrtb_rectangle_filled(10, 60, 100, 95, arcade.csscolor.DARK_BLUE)#波纹
arcade.draw_lrtb_rectangle_filled(200, 250, 120, 115, arcade.csscolor.DARK_BLUE)#波纹
arcade.draw_lrtb_rectangle_filled(300, 350, 90, 85, arcade.csscolor.DARK_BLUE)#波纹
arcade.draw_lrtb_rectangle_filled(400, 450, 120, 115, arcade.csscolor.DARK_BLUE)#波纹
arcade.draw_lrtb_rectangle_filled(500, 550, 80, 75, arcade.csscolor.DARK_BLUE)#波纹



arcade.draw_circle_filled(500, 550, 40, arcade.color.WHITE)#白色月亮
arcade.draw_circle_outline(480, 555, 10, arcade.color.DARK_GRAY)#月亮里的坑
arcade.draw_circle_outline(480, 575, 5, arcade.color.DARK_GRAY)#月亮里的坑
arcade.draw_circle_outline(510, 520, 7, arcade.color.DARK_GRAY)#月亮里的坑
arcade.draw_circle_outline(520, 540, 9, arcade.color.DARK_GRAY)#月亮里的坑

arcade.draw_circle_filled(100, 500, 5, arcade.color.PURPLE)#紫色烟花中心
arcade.draw_circle_filled(300, 550, 5, arcade.color.GREEN)#绿色烟花中心
arcade.draw_circle_filled(450, 330, 5, arcade.color.SKY_BLUE)#天蓝色烟花中心
arcade.draw_circle_filled(550, 440, 5, arcade.color.PINK)#粉红色烟花中心

arcade.draw_line(100, 510, 100, 520, arcade.color.RED, 2)#紫色烟花上下左右的光线 上
arcade.draw_line(100, 490, 100, 480, arcade.color.RED, 2)#下
arcade.draw_line(90, 500, 80, 500, arcade.color.RED, 2)#左
arcade.draw_line(110, 500, 120, 500, arcade.color.RED, 2)#右

arcade.draw_line(300, 560, 300, 570, arcade.color.YELLOW, 2)#绿色上下左右的光线 上
arcade.draw_line(300, 540, 300, 530, arcade.color.YELLOW, 2)#下
arcade.draw_line(290, 550, 280, 550, arcade.color.YELLOW, 2)#左
arcade.draw_line(310, 550, 320, 550, arcade.color.YELLOW, 2)#右

arcade.draw_line(450, 340, 450, 350, arcade.color.ORANGE, 2)#天蓝色上下左右的光线  上
arcade.draw_line(450, 320, 450, 310, arcade.color.ORANGE, 2)#下
arcade.draw_line(440, 330, 430, 330, arcade.color.ORANGE, 2)#左
arcade.draw_line(460, 330, 470, 330, arcade.color.ORANGE, 2)#右

arcade.draw_line(550, 450, 550, 460, arcade.color.PURPLE, 2)#粉红色上下左右的光线 上
arcade.draw_line(550, 430, 550, 420, arcade.color.PURPLE, 2)#下
arcade.draw_line(540, 440, 530, 440, arcade.color.PURPLE, 2)#左
arcade.draw_line(560, 440, 570, 440, arcade.color.PURPLE, 2)#右

arcade.draw_line(107, 507, 114, 514, arcade.color.PURPLE, 2)#紫色烟花对角光线 右上
arcade.draw_line(107, 493, 114, 486, arcade.color.PURPLE, 2)#右下
arcade.draw_line(93, 507, 86, 514, arcade.color.PURPLE, 2)#左上
arcade.draw_line(93, 493, 86, 486, arcade.color.PURPLE, 2)#左下

arcade.draw_line(307, 557, 314, 564, arcade.color.GREEN, 2)#绿色烟花对角光线 右上
arcade.draw_line(307, 543, 314, 536, arcade.color.GREEN, 2)#右下
arcade.draw_line(293, 557, 286, 564, arcade.color.GREEN, 2)#左上
arcade.draw_line(293, 543, 286, 536, arcade.color.GREEN, 2)#左下

arcade.draw_line(457, 337, 464, 344, arcade.color.YELLOW, 2)#天蓝色烟花对角光线  右上
arcade.draw_line(457, 323, 464, 316, arcade.color.YELLOW, 2)#右下
arcade.draw_line(443, 337, 436, 344, arcade.color.YELLOW, 2)#左上
arcade.draw_line(443, 323, 436, 316, arcade.color.YELLOW, 2)#左下

arcade.draw_line(557, 447, 564, 454, arcade.color.YELLOW, 2)#粉红色烟花对角光线  右上
arcade.draw_line(557, 433, 564, 426, arcade.color.YELLOW, 2)#右下
arcade.draw_line(543, 447, 536, 454, arcade.color.YELLOW, 2)#左上
arcade.draw_line(543, 433, 536, 426, arcade.color.YELLOW, 2)#左下

arcade.draw_polygon_filled(((10, 170), (10, 350), (30, 350), (30, 360), (50, 360), (50, 350), (70, 350), (70, 170)),arcade.csscolor.GRAY)#大楼们
arcade.draw_polygon_filled(((80, 170), (80, 400), (150, 400), (150, 170)),arcade.csscolor.GRAY)#大楼们
arcade.draw_polygon_filled(((160, 170), (160, 385), (167, 385), (167, 420), (174, 420), (174, 440), (181, 440), (181, 500), (188, 500), (188, 550), (195, 550), (195, 500), (203, 500), (203, 440), (210, 440), (210, 420), (217, 420), (217, 385), (224, 385), (224, 170)),arcade.csscolor.GRAY)#大楼们
arcade.draw_lrtb_rectangle_filled(188, 195, 550, 543, arcade.csscolor.RED)#大楼信号灯
arcade.draw_lrtb_rectangle_filled(15, 32, 215, 180, arcade.csscolor.YELLOW)#一号大楼灯
arcade.draw_lrtb_rectangle_filled(15, 32, 270, 235, arcade.csscolor.YELLOW)#一号大楼灯
arcade.draw_lrtb_rectangle_filled(15, 32, 325, 290, arcade.csscolor.YELLOW)#一号大楼灯
arcade.draw_lrtb_rectangle_filled(47, 64, 215, 180, arcade.csscolor.YELLOW)#一号大楼灯
arcade.draw_lrtb_rectangle_filled(47, 64, 270, 235, arcade.csscolor.YELLOW)#一号大楼灯
arcade.draw_lrtb_rectangle_filled(47, 64, 325, 290, arcade.csscolor.YELLOW)#一号大楼灯

arcade.draw_lrtb_rectangle_filled(90, 105, 215, 180, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(90, 105, 270, 235, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(90, 105, 325, 290, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(90, 105, 380, 345, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(120, 135, 215, 180, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(120, 135, 270, 235, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(120, 135, 325, 290, arcade.csscolor.YELLOW)#二号大楼灯
arcade.draw_lrtb_rectangle_filled(120, 135, 380, 345, arcade.csscolor.YELLOW)#二号大楼灯

arcade.draw_lrtb_rectangle_filled(165, 170, 367, 352, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 342, 327, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 317, 302, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 292, 277, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 267, 252, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 242, 227, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 217, 202, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(165, 170, 192, 177, arcade.csscolor.YELLOW)#三号大楼灯

arcade.draw_lrtb_rectangle_filled(180, 185, 367, 352, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 342, 327, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 317, 302, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 292, 277, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 267, 252, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 242, 227, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 217, 202, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(180, 185, 192, 177, arcade.csscolor.YELLOW)#三号大楼灯

arcade.draw_lrtb_rectangle_filled(195, 200, 367, 352, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 342, 327, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 317, 302, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 292, 277, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 267, 252, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 242, 227, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 217, 202, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(195, 200, 192, 177, arcade.csscolor.YELLOW)#三号大楼灯

arcade.draw_lrtb_rectangle_filled(210, 215, 367, 352, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 342, 327, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 317, 302, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 292, 277, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 267, 252, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 242, 227, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 217, 202, arcade.csscolor.YELLOW)#三号大楼灯
arcade.draw_lrtb_rectangle_filled(210, 215, 192, 177, arcade.csscolor.YELLOW)#三号大楼灯


arcade.draw_polygon_filled(((274, 145), (274, 205), (324, 205), (324, 215), (504, 215), (504, 205), (510, 205), (510, 145)),arcade.csscolor.WHITE)#船
arcade.draw_lrtb_rectangle_filled(274, 510, 148, 145, arcade.csscolor.RED)#船图案
arcade.draw_lrtb_rectangle_filled(274, 510, 195, 148, arcade.csscolor.BLACK)#船图案
arcade.draw_lrtb_rectangle_filled(340, 345, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(360, 365, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(380, 385, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(400, 405, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(420, 425, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(440, 445, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(460, 465, 230, 210, arcade.csscolor.YELLOW)#船图案
arcade.draw_lrtb_rectangle_filled(480, 485, 230, 210, arcade.csscolor.YELLOW)#船图案



arcade.draw_text(text = "石攻玉", start_x = 150, start_y = 30, color = arcade.color.YELLOW, font_size = 24)#文字、内容、大小，颜色




#结束画图
arcade.finish_render()

#保持窗口
arcade.run()